<h1>Listing tasks</h1>

<table>
  <tr>
    <th>Label</th>
    <th>Context</th>
  </tr>

<% for task in @tasks %>
  <tr>
    <td><%=h task.label %></td>
    <td><%=h task.context_id %></td>
    <td><%= link_to 'Show', task %></td>
    <td><%= link_to 'Edit', edit_task_path(task) %></td>
    <td><%= link_to 'Destroy', task, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New task', new_task_path %>
